home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_riv_elevmusic.cog < prev    next >
Text File  |  1999-11-15  |  917b  |  43 lines

  1. # Jones 3D Cog Script
  2. #
  3. # RIV_ElevMusic.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13.     message     entered
  14.  
  15.     sector      sec_Cue0        linkID=1
  16.     sector      sec_Cue1        linkID=1
  17.     sector      sec_Cue2        linkID=1
  18.     
  19.     sound       mus_Cue=mus_pru_raidersclearing.wav     local
  20.     
  21.     int         playing=0      local
  22.  
  23. end
  24.  
  25. # ========================================================================================
  26.  
  27. code
  28.  
  29. entered:
  30.  
  31.     if((GetSenderID() == 1) && (playing == 0))
  32.     {
  33.         playing = 1;
  34.         PlaySoundLocal(mus_Cue, 1.0, 0.0, 0x0, 1);
  35.         playing = 0;
  36.     }
  37.     
  38.     return;
  39.            
  40. # ========================================================================================
  41.  
  42. end
  43.